<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>
<link href="/admin/css/style.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="/admin/js/common.js"></script>
<style>
	.pagination li{
		float: left;
	}
</style>
</head>
<body>
<div class="colorarea01">
	<div class="search clearfix">
		<div class="searchL">
			<ul class="menulist">
				<li><a href="{{url('new/addnews')}}" class="add">添加新闻</a></li>
			</ul>	
		</div>
		<div class="searchR">
		<form action="<{$adminpage}>" method="get" name="form2">
		<table cellspacing="0" cellpadding="0" class="toptable">
			<tr>
				<td>
					 <input type="text" name="keywords" id="searchkey" value="" class="inp01"> &nbsp;<input type="submit" name="filtersubmit" value="查询" class="combutton02"><input type="hidden" name="m" value="news">
					<input type="hidden" name="a" value="list">
				</td>
			</tr>
		</table>
		</form>
		</div>
	</div>
	<form action="<{$adminpage}>?m=news" method="POST" name="form">
	<table cellspacing="0" cellpadding="0" class="listtable">
	<tr>
		<th width="30">选择</th>
		<th width="30">ID</th>
		<th>标题</th>
		<th>分类</th>
		<th>发布时间</th>
		<th>浏览</th>
		<th width="160">操作</th>
	</tr>
	@foreach($newslist as $n)
	<tr>
		<td align="center"><input type="checkbox" name="bulkid[]" value="<{$news.n_id}>"></td>
		<td align="center">{{$n->n_id}}</td>
		<td>
			<a href="#" target="_blank"/>{{$n->n_title}}</a>&nbsp;&nbsp;
			@if ($n->isrecom == 1)
			<span class="red">(推荐)</span>
			@endif  
		</td>
		<td align="center">
		@foreach($catelist as $c)
			@if($n->catid == $c->catid)
			{{$c->catname}}
			@endif
		@endforeach
		</td>		
		<td align="center">{{date('Y/m/d H:i',$n->n_addtime)}}</td>
		<td align="center" class="orange01">{{$n->n_hits}}</td>
		<td align="center" class="rightmenu"> 
			<a href="#" class="html">生成静态</a>| 
			<a href="{{url('new/editnews',[$n->n_id])}}" class='edit'>编辑</a>| 
			<a href="{{url('new/delnews',[$n->n_id])}}" class="del">删除</a>
	</td>
	</tr>
	@endforeach

	<tr>
		<td colspan="9" class="buttontd" style="text-align:left;">
			<a href="javascript:javascript:selectAll();" title="请选择后操作">全选</a>
			<a href="javascript:submitForm('<{$adminpage}>?m=news&a=bulkdel&page=<{$page}>','删除');" title="请选择后操作">删除</a> <a href="javascript:submitForm('<{$adminpage}>?m=news&a=bulkhtml&page=<{$page}>','生成静态');" title="请选择后操作">生成静态</a>
		</td>
	</tr>
	</table>
	</form>
	<div class="listpage">{!!$newslist->render()!!}</div>
</div>
</body>
</html>